<?php
//Compiled by TIBlog Template Engine v2.0 , Created on : 2011-05-04 21:55:44
defined('IN_DTE') or exit('Access Denied');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE><?php
echo $_obj['rtitle'];
?>
 (<?php
echo $_obj['mtitle'];
?>
 影评)</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<LINK rel=stylesheet type=text/css href="/static/css/global.css">
<LINK rel=stylesheet type=text/css href="/static/css/packed_douban53.css">
<LINK rel=stylesheet type=text/css href="/static/css/packed__all12.css">
<script type="text/javascript" src="/static/js/jquery.min4.js"></script>
<script type="text/javascript" src="/static/js/rating.js"></script>
<script type="text/javascript" src="/static/js/dialog.js"></script>
<script type="text/javascript">
$(function() {
	$('#rating').raty({
		half: true,
		readOnly:  true,
		start:<?php
echo $_obj['rating'];
?>

	});
});

function voteReview(id,type){
	votes = $.ajax({url:"/review/vote/" + id + '/' + type,async:false});
	result = votes.responseText;
	if (result == 'ok'){
		val = parseInt($("#" + type + '_val_' + id)[0].value);
		$("#" + type + '_' + id).html(val + 1);
	}else if (result == 'nologin'){
		window.location.href="/login"; 
	}else{
		$.fn.jmodal({title: '影评投票',content: '<BR>'+result+'<BR><BR>'});	
		window.setTimeout($.fn.hideJmodal,700);
	}
}

</script>
</head>
<body>
<div id=header>
	<div class="topbar">
		<div class="l"></div>
		<div class="r"><?php
echo $_obj['logintip'];
?>
</div>		
	</div>
	<div class=topper>
		<div class=logo>
			<p><a href="/">电影评论网</a><span>beta</span></p>
			</br>
			<p>movie.com</p>
			<p>最新、最热、最实时的电影信息和评论</p> 
		</div>
		<div class=nav>
			<ul>
				<li><a href="/movie/coming">即将上映</a>  |</li>
				<li><a href="/movie/hot">最热</a>  |</li>
				<li><a href="/movie/popular">最多喜欢</a>  </li>
				<!--  <li><a href="/<?php
echo $_obj['myspace'];
?>
">我的空间</a></li>    先隐藏不用-->
			</ul> 
		</div>
	</div>
	<div class=searchbar>
		<form method="get" action="/search/">
			<input type="text" class="ipt" name="keywords" value="电影名称、导演或演员" onblur="if(this.value=='') this.value='电影名称、导演或演员';" 
		onfocus="if(this.value=='电影名称、导演或演员') this.value='';" /><input type="submit" class="sbtn" value="" />
		</form>
	</div>
</div>
<div id="content">
<h1><span><?php
echo $_obj['title'];
?>
</span></h1>
<div class="clear"></div>
<br>
<div class="grid-16-8 clearfix">
<div class="article">
<div class="obss">
<div class="piil"><a href="/people/<?php
echo $_obj['uid'];
?>
/" target="_blank"><img class="pil" src="<?php
echo $_obj['profile_image_url'];
?>
"></a></div>
<div class="piir">
	<span class="mn"><?php
echo $_obj['addtime'];
?>
</span>
	<span class="pl2">来自: <a href="/people/<?php
echo $_obj['uid'];
?>
/" target="_blank"><span><?php
echo $_obj['username'];
?>
</span></a>
	<br/>
	<a href="/movie/<?php
echo $_obj['mid'];
?>
/"><span><?php
echo $_obj['mtitle'];
?>
</span></a> 的评论
	<span>&nbsp;&nbsp;<span id="rating"></span></span>
</span><br/><br/>
<span><?php
echo $_obj['contents'];
?>
</span>
<div class="clear"></div> 

<div class="review-panel"> 
	<div class="review-stat">您认为这篇影评：
	<input id="support_val_<?php
echo $_obj['id'];
?>
" value="<?php
echo $_obj['support'];
?>
" type="hidden"/>
	<input id="against_val_<?php
echo $_obj['id'];
?>
" value="<?php
echo $_obj['against'];
?>
" type="hidden"/>
	<span class="useful"><em id="support_<?php
echo $_obj['id'];
?>
"><?php
echo $_obj['support'];
?>
</em>&nbsp;<a href="javascript:;" onclick="voteReview('<?php
echo $_obj['id'];
?>
','support')">有用</a></span>/&nbsp;
	<span class="unuseful"><em id="against_<?php
echo $_obj['id'];
?>
"><?php
echo $_obj['against'];
?>
</em>&nbsp;<a href="javascript:;" onclick="voteReview('<?php
echo $_obj['id'];
?>
','against')">没用</a></span>
	</div>
</div>

<div class="ul" style="margin-top:10px;margin-bottom:10px"></div>

<h2>您的回应：</h2>
<div style="margin-top:0px;text-align:right">
	<form name="comments" method="post" action="/review/reply/<?php
echo $_obj['id'];
?>
">
		<textarea class="textarea" name="content" style="width:505px;height:50px;margin:0px"></textarea><br>
<!-- 增加同步到微博的内容-->	
		<input name="mtitle" type="hidden" value="<?php
echo $_obj['mtitle'];
?>
" />  
		<input name="title" type="hidden" value="<?php
echo $_obj['title'];
?>
" />   
<label>
<input type="checkbox" name="checkbox" value="check" checked />
<img  src="http://www.sinaimg.cn/blog/developer/wiki/LOGO_16x16.png">同步到新浪微博</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- 增加同步到微博的内容-->	
		<input type="submit" class="btn" value="添加"/>
	</form>
</div>
<div class="clear"></div>


<div id="comments">
<?php
if (!empty($_obj['replys'])){
if (!is_array($_obj['replys']))
$_obj['replys']=array(array('replys'=>$_obj['replys']));
$_tmp_arr_keys=array_keys($_obj['replys']);
if ($_tmp_arr_keys[0]!='0')
$_obj['replys']=array(0=>$_obj['replys']);
$_stack[$_stack_cnt++]=$_obj;
foreach ($_obj['replys'] as $rowcnt=>$replys) {
$replys['ROWCNT']=$rowcnt;
$replys['ALTROW']=$rowcnt%2;
$replys['ROWBIT']=$rowcnt%2;
$_obj=&$replys;
?>
<table class="wr">
	<tr>
		<td valign="top" width="75"><a href="/people/<?php
echo $_obj['uid'];
?>
/"><img class="pil" src="/static/avatars/<?php
echo $_obj['avatars'];
?>
"></a></td>
		<td valign="top"><span class="wrap"><h4><?php
echo $_obj['addtime'];
?>
: <a href="/people/<?php
echo $_obj['uid'];
?>
/"><?php
echo $_obj['username'];
?>
</a></h4></span><?php
echo $_obj['contents'];
?>
<br/></td>
	</tr>
</table>
<br/>
<?php
}
$_obj=$_stack[--$_stack_cnt];}
?>
<?php
echo $_obj['pages'];
?>

</div>

</div>
</div>
</div>


<div class="aside">
    
<p class="pl2">&gt; <a href="/movie/<?php
echo $_obj['mid'];
?>
/">去<?php
echo $_obj['mtitle'];
?>
的页面</a></p><br>

<div class="indent">
		<a href="/movie/<?php
echo $_obj['mid'];
?>
/">
		<img class="fil" alt="<?php
echo $_obj['mtitle'];
?>
" title="<?php
echo $_obj['mtitle'];
?>
" src="/static/upload/thumb/<?php
echo $_obj['thumb'];
?>
" height="150" width="100"></a>
		<br clear="all"/>
		<?php
echo $_obj['descs'];
?>

 </div>



</div>


</div>
</div>    

<DIV class=clear></DIV>
<DIV id="footer">
	<DIV class="left">
		&copy; 2010 Movie.com, All Rights Reserved.&nbsp;&nbsp;&nbsp;苏ICP没有备案号&nbsp;&nbsp;<BR>
		<SPAN><?php
echo $_obj['debuginfo'];
?>
</SPAN>
	</DIV>
	<DIV class="right">
		<A href="/about/aboutus">关于我们</A>
		<A href="/about/flinks">友情链接</A>
		<A href="/about/contact">联系及合作</A>
		<A href="/about/feedback">投诉与建议</A>
		<A href="/about/sitemap">站点地图</A>
		<A href="/about/sitemap">使用帮助</A>		 
	</DIV>
</DIV> 
</body></html>